import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/index'
import Headers from "../components/header";
import Footers from "../components/footer";
import BeautyRecommond from "@/components/learningBeauty/beautyRecommend"
import Goddess from "@/components/learningBeauty/goddess"
import BeautyMovie from "@/components/learningBeauty/beautyMovie"
import Sorting from "@/pages/goodsClass"
import Finding from "@/pages/finding"
import Mine from "@/pages/mine"
import Message from "@/pages/message"
import Goods from "@/pages/goods"
import HotTopic from "@/pages/hotTopic"
import HotGoods from "@/pages/hotGoods"
import BeautyExport from "@/pages/beautyExport"
import Essay from "@/pages/second/essay"
import Video from "@/pages/second/video"
import Aboutloveliness from "@/pages/second/aboutloveliness"
import Sponsor from "@/pages/second/sponsor"
import Help from "@/pages/second/help"
import Personaldata from "@/pages/second/personaldata"
import Beautyexport from "@/pages/beautyExport"
import HotToPic from "@/pages/hotTopic"
import Banner from "@/pages/second/banner"
import BloggerInfo from "@/pages/second/bloggerInfomation"
import OnlineChat from "@/pages/second/onlineChat"
import AllCommont from "@/pages/second/allCommont"
import Attention from "@/pages/second/attention"
import NewFriend from "@/pages/second/newFriend"
import Collect from "@/pages/collect"
import CollectProc from "@/pages/second/collectProc"
import CollectTopic from "@/pages/second/collectTopic"
import CollectVideo from "@/pages/second/collectVideo"
import Fans from "@/pages/fans"
import Setting from "@/pages/setting"
import Sign from "@/pages/sign"
import Focus from "@/pages/focus"
import Activity from "@/pages/second/activity"
import BindPhone from "@/pages/second/bindPhone"
import IntoBounding from "@/pages/second/intoBounding"
import Register from "@/pages/second/register"
import Address from "@/pages/second/address"
import ProductDetails from "@/pages/second/productDetails"
import MsgInform from "@/pages/second/msgInform"
import Sug from "@/pages/second/sug"
import Login from "@/pages/login"
import Search from "@/pages/second/search"
import LearningBeauty from "@/pages/learningBeauty"
import SearchResult from "@/pages/second/searchResult"




Vue.use(Router)


export default new Router({
  routes: [
    {
      path:"/",
      name:"login",
      component: Login
    },
    {
    path: '/index',
    name: 'index',
    component: Index,
    children: [{
      path: "/",
      name: "beautyRecommond",
      component: BeautyRecommond,
    },
    {
      path: "/learningBeauty",
      name: "learningBeauty",
      component: LearningBeauty,
      children: [
        {
          path: "/",
          name: "goddess",
          component: Goddess,

        },
        {
          path: "/beautyMovie",
          name: "beautyMovie",
          component: BeautyMovie,
        }
      ]
    },
    ]
  },
  {
    path: "/sort",
    name: 'sorting',
    component: Sorting
  },
  {
    path: "/finding",
    name: "finding",
    component: Finding
  },
  {
    path: "/mine",
    name: "mine",
    component: Mine
  },
  {
    path: '/message',
    name: 'message',
    component: Message
  },
  {
    path: '/goods',
    name: 'goods',
    component: Goods
  },
  {
    path: '/fans',
    name: 'fans',
    component: Fans
  },
  {
    path: '/setting',
    name: 'setting',
    component: Setting
  },
  {
    path: '/hotGoods',
    name: 'hotGoods',
    component: HotGoods
  },
  {
    path: '/beautyExport',
    name: 'beautyExport',
    component: BeautyExport
  },
  {
    path: '/focus',
    name: 'focus',
    component: Focus,
  },
  {
    path: '/activity',
    name: 'activity',
    component: Activity,
  },
  {
    path: '/essay',
    name: 'essay',
    component: Essay,
  },
  {
    path: "/video",
    name: "video",
    component: Video,
  },
  {
    path: "/aboutloveliness",
    name: "aboutloveliness",
    component: Aboutloveliness,
  },
  {
    path: "/sponsor",
    name: "sponsor",
    component: Sponsor,
  },
  {
    path: "/help",
    name: "help",
    component: Help,
  },
  {
    path: "/personaldata",
    name: "personaldata",
    component: Personaldata,
  },
  {
    path: '/message',
    name: 'message',
    component: Message
  },
  {
    path: '/goods',
    name: 'goods',
    component: Goods
  },
  {
    path: "/beautyExport",
    name: "beautyExport",
    component: Beautyexport
  },
  {
    path: "/hotToPic",
    name: "hotToPic",
    component: HotToPic
  },
  {
    path: "/banner",
    name: "banner",
    component: Banner
  },
  {
    path: "/bloggerInfo",
    name: "bloggerInfo",
    component: BloggerInfo
  },
  {
    path: "/onlineChat",
    name: "onlineChat",
    component: OnlineChat
  },
  {
    path: "/allCommont",
    name: "allCommont",
    component: AllCommont
  },
  {
    path: "/attention",
    name: "attention",
    component: Attention
  },
  {
    path: "/newFriend",
    name: "newFriend",
    component: NewFriend
  },

  {
    path: '/collect',
    name: 'collect',
    component: Collect,
    children: [
      {
        path: '/',
        name: 'collectProc',
        component: CollectProc,
      },
      {
        path: '/collecttopic',
        name: 'collecttopic',
        component: CollectTopic,
      },
      {
        path: '/collectvideo',
        name: 'collectvideo',
        component: CollectVideo,
      }
    ]
  },
  {
    path: '/fans',
    name: 'fans',
    component: Fans
  },
  {
    path: '/setting',
    name: 'setting',
    component: Setting
  },
  {
    path: '/sign',
    name: 'sign',
    component: Sign
  },
  {
    path: '/focus',
    name: 'focus',
    component: Focus,
  },
  {
    path: '/activity',
    name: 'activity',
    component: Activity,
  },
  {
    path: '/bindPhone',
    name: 'bindPhone',
    component: BindPhone,
  },
  {
    path: '/intoBounding',
    name: 'intoBounding',
    component: IntoBounding,
  },
  {
    path: '/register',
    name: 'register',
    component: Register,
  },
  {
    path: '/address',
    name: 'address',
    component: Address,
  },
  {
    path: '/productDetails',
    name: 'productDetails',
    component: ProductDetails,
  },
  {
    path: '/collect',
    name: 'collect',
    component: Collect,
    children: [
      {
        path: '/',
        name: 'collectProc',
        component: CollectProc,
      },
      {
        path: '/collecttopic',
        name: 'collecttopic',
        component: CollectTopic,
      },
      {
        path: '/collectvideo',
        name: 'collectvideo',
        component: CollectVideo,
      }
    ]
  },
  {
    path: '/msgIform',
    name: 'msgIform',
    component: MsgInform,
  },
  {
    path: '/sug',
    name: 'sug',
    component: Sug,
  },
  {
    path: '/login',
    name: 'login',
    component: Login,
  },
  {
    path: '/search',
    name: 'search',
    component: Search,
    children: [
      {
        path: '/search/searchResult',
        name: 'searchResult',
        component: SearchResult,
      },
    ]
  },
  ]
})

// export default new Router({
//   routes: [
//     {
//       path: '/',
//       name: 'Index',
//       component: Index,

//     }
//   ]
// })
